export const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('@/layout/index.vue'),
        meta: {
            loginRequired: true
        },
        children: [
            {
                path: 'passenger',
                name: 'passenger',
                component: () => import('@/views/main/passenger.vue')
            },{
                path: 'ticket',

                name: 'ticket',
                component: () => import('@/views/main/ticket.vue')
            },{
                path: 'order',
                name: 'order',
                component: () => import('@/views/main/order.vue')
            }, {
                path: 'my-ticket',
                name:'my-ticket',
                component: () => import('@/views/main/my-ticket.vue')
            }
        ]
    }, {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/login.vue')
    }, {
        path: '/:pathMatch(.*)*',
        redirect: '/404',
        name: 'any'
    }
]